package com.yuntu.service;

import com.yuntu.entity.Person;
import com.yuntu.mapper.PersonMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @Author 张甲升
 * @create 2021-11-05-9:23
 */
@Service
public class PersonServiceImpl implements PersonService{
    @Resource
    private PersonMapper personMapper;

    @Override
    public List<Person> query() {
        return personMapper.query();
    }

    @Override
    public int insert(Person person) {
        return personMapper.insert(person);
    }

    @Override
    public int delete(int id) {
        return personMapper.delete(id);
    }
}
